package top.tangyh.lamp.care.vo.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.tangyh.basic.base.entity.Entity;

/**
 * <p>
 *  数据记录单元格
 * </p>
 *
 * @author: fyh
 * @since: 2021/11/30
 */
@Data
@NoArgsConstructor
@Schema(description = "数据记录单元格")
public class CareRecordCellVo extends Entity<Long> {
	@Schema(description ="项目值")
	private String itemValue;

	@Schema(description ="类型，说明：时间列为time, 非时间列为text")
	private String type;

	@Schema(description ="时间轴对应时间,说明：时间戳")
	private Long mappedTime;

	@Schema(description ="项目code")
	private String itemCode;

	@Schema(description ="排序")
	private Long orderNo;

	public CareRecordCellVo(String type, Long mappedTime, String itemValue) {
		this.type=type;
		this.mappedTime=mappedTime;
		this.itemValue = itemValue;
	}

	public CareRecordCellVo(String type, Long mappedTime, String itemValue, Long orderNo, String itemCode) {
		this.type=type;
		this.mappedTime=mappedTime;
		this.itemValue = itemValue;
		this.orderNo = orderNo;
		this.itemCode = itemCode;
	}
}
